﻿<ion-view view-title="物流公司" cache-view="true" ng-init="init()">
  <ion-nav-back-button class="button-clear">
    <i class="ion-arrow-left-c"></i> 首页
  </ion-nav-back-button>
  <ion-side-menus delegate-handle="filter">
    <ion-side-menu-content style="padding-top:44px">
      <section class="g_main">
        <section class="truck_line_filter gray_back">
          <div class="filter_total">
            <p><em>{{pageConf.area_id_disp}}</em>找到 <strong>{{count}}</strong> 位联系人</p>
            <span class="change_filter" ng-click="toggleMenu()"><i class="icon icon_filter"></i>筛选</span>
          </div>
          <ion-scroll style="height:{{scorllHeight}}px" delegate-handle="corplistscroll">
            <div style="height:{{listHeight}}px">          
              <ion-list>
                <ul class="filter_list">
                  <li ng-repeat="item in corplist" ng-click="toCorpDetail('{{item.emp_id}}')">
                    <div class="user_info">
                      <div class="name"><strong>{{item.owner_name}}</strong><!--span class="icon_star star_3">4星</span--></div>
                      <div class="company"><i class="icon icon_tag_qi">企业认证</i><i class="icon icon_tag_shi">实名认证</i><!--i class="icon icon_tag_che">有车</i><i class="icon icon_tag_piao">发票</i--> <em>{{item.corp_name}}</em></div>
                    </div>
                    <div class="truck_info">
                      <img ng-src="{{item.owner_photo}}" alt="">
                      <p class="detail">{{item.intro}}</p>
                    </div>
                    <div class="contact_info"><a ng-href="tel: {{item.owner_phone}}"><i class="icon icon_tel"></i>电话联系</a> <a ng-click="openchat('{{item.emp_id}}', '{{item.owner_name}}', '{{item.owner_photo}}', $event)"><i class="icon icon_message"></i>在线联系</a></div>
                  </li>          
                </ul>
              </ion-list>
              <ion-infinite-scroll on-infinite="loadMoreRecord()" distance="1" ng-show="showprogress"></ion-infinite-scroll>
            </div>
          </ion-scroll>
        </section>
      </section>
    </ion-side-menu-content>
    <ion-side-menu side="right">
      <ion-content>
        <section class="filter_pop_box">
          <section class="filter_change">
            <ul>
              <li ng-click="toQueryPage(1)"><strong>所在地</strong><span>{{pageConf.area_id_disp}}</span></li>
            </ul>
            <button class="btn_reset" ng-click="query()">查询</button>
          </section>
        </section>
      </ion-content>
    </ion-side-menu>
  </ion-side-menus>
</ion-view>
